//---------------------------------------------------------------------------

//#include <vcl.h>
#pragma hdrstop
#include "stdafx.h"

#include "FAdressBookNewUser.h"
#include "FAddressBook.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource "*.dfm"
TAdressBookNewUser *AdressBookNewUser;
//---------------------------------------------------------------------------
__fastcall TAdressBookNewUser::TAdressBookNewUser(TComponent* Owner)
        : TForm(Owner)
{
}
//---------------------------------------------------------------------------
void __fastcall TAdressBookNewUser::BitBtn2Click(TObject *Sender)
{
   Close();        
}
//---------------------------------------------------------------------------
void __fastcall TAdressBookNewUser::BitBtn1Click(TObject *Sender)
{
   AddressBook->m_user = CB_UserName->Text;
   AddressBook->m_addr_sip = CB_Addr_Sip->Text;
   ModalResult = mrOk;
   Close();
}
//---------------------------------------------------------------------------
void __fastcall TAdressBookNewUser::FormShow(TObject *Sender)
{
   CB_UserName->Text = AddressBook->m_user;
   CB_Addr_Sip->Text = AddressBook->m_addr_sip;
}
//---------------------------------------------------------------------------

